package com.kfy.observerdemo.Pub_Sub;

/**
 * @ProjectName: ObserverDemo
 * @Package: com.kfy.observerdemo.Pub_Sub
 * @Author: K.F.Y
 * @Date: 2021/5/8
 */
public interface ISubcriber {

    //订阅
    void subscribe(SubscribePublish subscribePublish);

    //取消订阅
    void unsubscribe(SubscribePublish subscribePublish);

    //更新
    void update(IPublisher publisher);

}
